from django.db import models

from course.models import CourseModel
from user.models import UserModel
from utils.basemodel import BaseModel


# Create your models here.

class CartModel(BaseModel):
    user = models.ForeignKey(to=UserModel,on_delete=models.CASCADE)
    course = models.ForeignKey(to=CourseModel,on_delete=models.CASCADE)
    select = models.BooleanField(default=True)

    class Meta:
        db_table = 'fgcart'